<?php include "db.php"; ?>
<?php include "user.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  

<title>Secret</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>  
<body>
<div id="main">

<?php
$user = unserialize($_SESSION['User']);
if(!empty($_SESSION['LoggedIn']) && $user->getPermissions()==1)
{
	?>
	<h1> Congratulations! You can see this page! </h1>

	<p> <a href="index.php"> Return to index page. </a> </p>
	<?php
}
else
{
	?>
	<h1> Sorry, you aren't cool enough to see this page... </h1>
	
	<p> <a href="index.php"> Return to index page. </a> </p>
	<?php
}
?>

</div>
</body>
</html>